﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using CSharp.Libs.Koc;

namespace CSharp.Libs.WPF.UserControls
{
    /// <summary>
    /// Interaction logic for KocKernel2Control.xaml
    /// </summary>
    public partial class KocKernel2Control : UserControl
    {
        #region declarations
        private Kernel _KRNL = null;
        private KocKernel2ViewModel _KK2VM = null;
        #endregion



        #region constructor destructor
        public KocKernel2Control()
        {
            InitializeComponent();
        }
        #endregion



        #region private functions
        private void _Initialize(
            Kernel KRNL)
        {
            _KRNL = KRNL;
            _KK2VM = new KocKernel2ViewModel(this.Dispatcher, _KRNL);
            DataContext = _KK2VM;
        }
        #endregion



        #region interface
        #region properties
        public KocKernel2ViewModel ViewModel { get { return _KK2VM; } }
        #endregion

        #region methods
        public void Initialize(
            Kernel KRNL)
        {
            _Initialize(KRNL);
        }
        #endregion
        #endregion
    }
}
